package com.san.school.mapper;

import com.san.school.entity.Course;
import com.san.school.entity.CourseExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * ClassName:CourseMapper
 * PackageName:com.san.school.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 18:07
 */


public interface CourseMapper {
    long countByExample(CourseExample example);

    int deleteByExample(CourseExample example);

    int deleteByPrimaryKey(Integer courseid);

    int insert(Course record);

    int insertSelective(Course record);

    List<Course> selectByExample(CourseExample example);

    Course selectByPrimaryKey(Integer courseid);

    int updateByExampleSelective(@Param("record") Course record, @Param("example") CourseExample example);

    int updateByExample(@Param("record") Course record, @Param("example") CourseExample example);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);
}